#ifndef __MYFILESYSTEM_H_
#define __MYFILESYSTEM_H_

#include "LinkTree.h"

// struct FileInfo
// {
//     std::string name;
//     size_t fileSize;
// };

class MyFileSystem
{
public:
    MyFileSystem(const std::string &path); // 参数：文件夹路径
    void show() { tree.show(); }

    void FindByFileName(const std::string &name);

private:
    void ExploreDir(TreeNode *parent, const std::string &path);
    LinkTree tree;
};

#endif
